package com.qyhl.module_practice.newhome.scan;

public class PracticeScanPresenter implements PracticeScanContract.PracticeScanPresenter {
    private PracticeScanActivity mView;

    private PracticeScanModel mModel;

    PracticeScanPresenter(PracticeScanActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeScanModel(this);
    }

    @Override
    public void doSign(String phone, String qrCode, String type) {
        mModel.doSign(phone, qrCode, type);
    }

    @Override
    public void signSuccess(String msg) {
        mView.signSuccess(msg);
    }

    @Override
    public void signError(String msg) {
        mView.signError(msg);
    }

    @Override
    public void isSignOut() {
        mView.isSignOut();
    }
}
